<template>
  <div>
    <header id="header">
      <div class="left">{{shopText}}</div>
      <div class="right">
        <el-button @click="reFresh">{{shopBtnText}}</el-button>
      </div>
    </header>
  </div>
</template>
<script>
export default {
    props:{
        shopText:{
            type:String,
            default:'',
            required:true
        },
        shopBtnText:{
            type:String,
            default:'',
            required:true
        }
    },
    methods:{
      reFresh(){
        location.reload();
      }
    }
}
</script>
<style scoped>
#header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 50px;
  background-color: #f0f0f0;
}
.left {
  height: 26px;
  font-size: 18px;
  font-weight: 400;
  border-left: 6px solid #1cb09a;
  padding-left: 10px;
  margin-left: 20px;
}
.right button {
  margin-right: 20px;
  background-color: #1cb09a;
  color: #fff;
  padding: 8px 12px;
  border-radius: 4px;
}
</style>